how to find function is single valued or multivalued